package com.jokesoft.supermanager.common.save;

public class AddressParseException extends Exception {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private final String errorMessage;

    public AddressParseException(String[] addComp) {

        StringBuilder errorMessageBuilder = new StringBuilder();
        errorMessageBuilder.append("Missing address components, All address components are mandatory");
        errorMessageBuilder.append(", usage: street,postalcode,postoffice,country");

        this.errorMessage = errorMessageBuilder.toString();

    }

    public String getErrorMessage() {
        return errorMessage;
    }

}
